﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">
        .style5
        {
            width: 95px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             <span class="title1"><asp:Label ID="lbl_loginfirst" runat="server" Text="Please Login first "></asp:Label><br />
             </span>
             <asp:Panel ID="Panel2" runat="server" DefaultButton="Button1">
                 <table class="style1">
                     <tr>
                         <td class="style5">
                             <asp:Label ID="lbl_useremail" runat="server" Text="Your Email"></asp:Label>
                         </td>
                         <td>
                             <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="l"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                 ControlToValidate="TextBox1" ErrorMessage="?" ValidationGroup="l"></asp:RequiredFieldValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                 ControlToValidate="TextBox1" ErrorMessage="x" 
                                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                 ValidationGroup="l"></asp:RegularExpressionValidator>
                         </td>
                     </tr>
                     <tr>
                         <td class="style5">
                             <asp:Label ID="lbl_password" runat="server" Text="Password"></asp:Label>
                         </td>
                         <td>
                             <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" 
                                 ValidationGroup="l"></asp:TextBox>
                             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                 ControlToValidate="TextBox2" ErrorMessage="?" ValidationGroup="l"></asp:RequiredFieldValidator>
                         </td>
                     </tr>
                 </table>
                 <br />
                 <asp:Button ID="Button1" runat="server" Height="25px" onclick="Button1_Click" 
                     Text="ok" Width="68px" ValidationGroup="l" />
                 &nbsp;<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="sign_up.aspx">Sign 
                 Up</asp:HyperLink>
             </asp:Panel>
             <br />
             <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                 AssociatedUpdatePanelID="UpdatePanel1">
                 <ProgressTemplate>
                     <span style="color: #FF0000">Loading... Please wait.</span>
                 </ProgressTemplate>
             </asp:UpdateProgress>
            <asp:Label ID="Label1" runat="server" 
                Text="this e-mail doesn't exist, Please try again." ForeColor="Red"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>

